home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $PROJECT: arexx external function
- **
- ** $VER: StrToRDArgs 1.1 (02.09.94)
- **
- ** by
- **
- ** Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
- **
- ** (C) Copyright 1994
- ** All Rights Reserved !
- **
- ** Place this script in your REXX: directory and just use it like this :
- **
- ** rdargsstring = StrToRDArgs(mystring)
- **
- **
- ** NOTE:
- **
- ** Don't add the suffix ".rexx" to this file ! Because many applications
- ** have own rexx suffix's like GoldED has ".ged" or CygnusEd has ".ced",
- ** they couldn't found a ".rexx" script !
- **
- ** This code is based on some arexx macros from Alexander Barthel
- **
- ** $HISTORY:
- **
- ** 02.09.94 : 001.001 : initial
- */
-
- /* convert string to a RDArgs suitable string */
-
- PARSE ARG str
-
- if str ~= '' then do
- help = str
- str = ''
- do i = 1 to length(help)
- char = substr(help, i, 1)
- if char = '*' then
- char = '**'
- if char = '"' then
- char = '*"'
- str = insert(char, str, length(str))
- end
- end
- exit str
-
-
-